import dropoffdesk.DeskController;
import dropoffdesk.DeskGUI;
import dropoffdesk.DropOffDesk;
import utils.Logger;
import queue.Queue;
import queue.QueueController;
import queue.QueueGUI;
import coreSimulation.WindowController;

public class BaggageQueueSimulator {

	public static void main(String[] args) {

		Logger.getLogger().clearLog(Logger.ERROR);
		Logger.getLogger().clearLog(Logger.EVENT);

		Queue queue = new Queue("PassengerList.csv");
		QueueGUI queueGUI = new QueueGUI(queue);
		QueueController queueController = new QueueController(queue, queueGUI);

		DropOffDesk desk = new DropOffDesk(queue);
		DeskGUI deskGUI = new DeskGUI(desk);
		DeskController deskController = new DeskController(deskGUI, desk);

		WindowController windowController = new WindowController(desk, queue);

		deskGUI.addWindowListener(windowController);
		queueGUI.addWindowListener(windowController);

	}
}
